/**
 *
 * @description:全局环境(域名)配置
 * @author:翟磊
 * @date:2022-02-15
 *
 **/

//环境变量
let { NODE_ENV } = process.env;
//网关
let gateway = "gateway-server";
let emun = {
  //测试
  sit: {
    host: {
      gateWaybaseUrl: `//192.168.31.34:7001/${gateway}`,
      websocket: `ws://192.168.31.34:7001/${gateway}`,
    },
    //静态资源
    assets_host: "https://jszhgd.cn/static",
    env: NODE_ENV,
    previewFileUrl: "http://192.168.31.234:7120",
  },
  //生产
  prd: {
    host: {
      gateWaybaseUrl: `http://219.139.133.163:70/ltgateway`,
      websocket: `ws://219.139.133.163:70/ltgateway`,
    },
    assets_host: "https://jszhgd.cn/static",
    env: NODE_ENV,
    previewFileUrl: "http://219.139.133.163:70/kkfile",
  },
};
module.exports = emun[NODE_ENV];
